package com.epalmpay.service.thread;

import com.epalmpay.service.jobservice.IProfitStatisService;
import com.epalmpay.service.member.IMemberService;


public class AfterTransUploadThread implements Runnable {
    private IProfitStatisService profitStatisService;
    private Long tradeOfflineId;

    public AfterTransUploadThread(Long tradeOfflineId,IProfitStatisService profitStatisService) {
        this.tradeOfflineId = tradeOfflineId;
        this.profitStatisService = profitStatisService;
    }

    @Override
    public void run() {
        try {
            profitStatisService.saveOneOrderProfitCalculate(tradeOfflineId);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
